<%-- 
    Document   : UsersAdmin
    Created on : 10 janv. 2012, 17:42:46
    Author     : Gaëtan
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>

 <table class="csstableUserAdmin">
    <h1 id="header"> <s:property value="%{getText('users.tab.title')}" /> </h1>
    
    <tr id="top">
        <th><s:property value="%{getText('user.id')}" /></th>
        <th><s:property value="%{getText('user.prenom')}" /></th>
        <th><s:property value="%{getText('user.nom')}" /></th>
        <th><s:property value="%{getText('user.mail')}" /></th>
        <th><s:property value="%{getText('user.login')}" /></th>
        <th><s:property value="%{getText('user.type')}" /></th>
    </tr>
    <s:iterator value="usersList">
        <tr id="cel">
            <td><s:property value="id"/></td>
            <td><s:property value="prenom"/></td>
            <td><s:property value="nom"/></td>
            <td><s:property value="mail"/></td>
            <td><s:property value="login"/></td>
            <td><s:property value="type.libelle"/></td>
            <td>
                <s:form method="post" action="editUserAdmin" theme="simple">
                    <s:hidden name="login" />
                    <s:submit type="image" src="images/edit.gif" label="%{getText('offer.edit')}" title="%{getText('user.edit')}" />
                </s:form>
            </td>
            <td>
                <s:form method="post" action="deleteUserAdmin" theme="simple">
                    <s:hidden name="login" />
                    <s:submit type="image" src="images/supprimer.jpg" label="%{getText('offer.delete')}" title="%{getText('user.delete')}" />
                </s:form>
            </td>
        </tr>
    </s:iterator>

</table>
 